package com.cx.mall.order.service;

import com.cx.mall.common.model.order.OrderDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 订单中所包含的商品 服务类
 * </p>
 *
 * @author lyt
 * @since 2025-07-14
 */
public interface IOrderDetailService extends IService<OrderDetail> {
    /**
     * 按订单id查询订单详情
     */
    List<OrderDetail> listByOrderId(String orderId);

    /**
     * 按批量订单ID查询订单详情
     */
    List<OrderDetail> listByOrderIds(List<String> orderIds);

    void removeByOrderId(String id);

    public boolean saveDetail(String orderId, Long skuId);

    public boolean removeByOrderId(Long orderId);
}
